package com.xishu.entity.plat;

import com.xishu.annotation.dao.Search;
import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * 平台每一天的数据
 */
@Entity(name = "day_report")
@Table(indexes = {@Index(columnList = "day", unique = true)})
public class DayReport extends AbstractEntity {
    @ApiModelProperty(value = "哪一天")
    private String day;

    @ApiModelProperty(value = "发送到厨房的数量")
    private Long sendKitchenNumber;

    @Version
    @ApiModelProperty(value = "版本号")
    @Search(ignore = true)
    private long lockVersion;

    public long getLockVersion() {
        return lockVersion;
    }

    public void setLockVersion(long lockVersion) {
        this.lockVersion = lockVersion;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public Long getSendKitchenNumber() {
        return sendKitchenNumber;
    }

    public void setSendKitchenNumber(Long sendKitchenNumber) {
        this.sendKitchenNumber = sendKitchenNumber;
    }
}
